package by.pavlyukevich.paymentsystem.datamodel.payment;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

import by.pavlyukevich.paymentsystem.datamodel.AbstractEntity;

@Entity
public class Counter extends AbstractEntity<Integer> {

	@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.REFRESH)
	private Payment payment;

	@Column
	private String counterNumber;

	@Column
	private Double indication1;

	@Column
	private Double indication2;

	public Payment getPayment() {
		return payment;
	}

	public void setPayment(Payment payment) {
		this.payment = payment;
	}

	public String getCounterNumber() {
		return counterNumber;
	}

	public void setCounterNumber(String counterNumber) {
		this.counterNumber = counterNumber;
	}

	public Double getIndication1() {
		return indication1;
	}

	public void setIndication1(Double indication1) {
		this.indication1 = indication1;
	}

	public Double getIndication2() {
		return indication2;
	}

	public void setIndication2(Double indication2) {
		this.indication2 = indication2;
	}

}
